Python 3.12.0 (tags/v3.12.0:0fb18b0, Oct  2 2023, 13:03:39) [MSC v.1935 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
from tkinter import *

print('Введите начальную координату X:')
... x = int(input())
... 
... print("Введите начальную координату Y:")
... y = int(input())
... 
... print("Введите коэфициент увелечения N:")
... n = int(input())
... 
... coords = [0, 0, 10, 0, 10, 10, 20, 10, 20, 30, 10, 30, 10, 20, 0, 20]
... 
... if n > 0 and (0 <= x <= 500) and (0 <= y <= 500):
...     pass
... else:
...     print("Недопустимые начальные значения")
...     exit()
... 
... if (0 <= 20 * n + x <= 500) and (0 <= 30 * n + y <= 500):
...     pass
... else:
...     print("Размер фигуры превышает максимальный размер поля")
...     exit()
... 
... root = Tk()
... root.title("ИТ марафон")
... 
... root.geometry("500x500")
... 
... canvas = Canvas(bg="white", width=500, height=500)
... canvas.pack(anchor=CENTER, expand=1)
... 
... canvas.create_polygon(
...     coords[0] * n + x, coords[1] * n + y,
...     coords[2] * n + x, coords[3] * n + y,
...     coords[4] * n + x, coords[5] * n + y,
...     coords[6] * n + x, coords[7] * n + y,
...     coords[8] * n + x, coords[9] * n + y,
...     coords[10] * n + x, coords[11] * n + y,
...     coords[12] * n + x, coords[13] * n + y,
...     coords[14] * n + x, coords[15] * n + y,
... )
... 
